package com.shycloud.mido.member.controller;

import cn.hutool.core.map.MapUtil;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.xiaoymin.knife4j.annotations.ApiSort;
import com.shycloud.mido.common.core.util.R;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import java.util.Map;

/**
 * APP 用户管理 controller
 *
 * @author nianhua.jiang
 * @date 2020/6/15
 */
@RestController
@AllArgsConstructor
@RequestMapping("/member/app")
@ApiSort(3)
@Api(value = "APP用户管理模块",tags = "APP用户管理模块")
@ApiIgnore
public class AppMemberController {

	@GetMapping("getAppMemberInfo")
	public R getAppMemberInfo(Integer current, Integer size, String phone, String idtity, String type) {

		//分页参数
		Page page = new Page(current, size);

		Map<String, Object> resultMap = MapUtil.newHashMap();

		//用户数量统计
		resultMap.put("memberCount", 0);
		//教师数量统计
		resultMap.put("teacherCount", 0);
		//学生数量统计
		resultMap.put("studentCount", 0);
		//user info -> 账号，昵称，用户身份，会员类别，注册时间，状态
		resultMap.put("userInfo", 0);

		//返回结果集
		return new R(resultMap);
	}

}
